package com.group4.order.mapper;

import com.group4.order.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 订单 Mapper 接口
 * </p>
 *
 * @author cloud
 * @since 2022-03-10
 */
public interface OrderMapper extends BaseMapper<Order> {
    /**
     * 根据订单id修改订单状态
     */
    @Update("update t_order set status=1 where id=#{id}}")
    public int updateStatusByNum(String id);


}
